package com.example.peanutsubway.service;

import com.example.peanutsubway.entity.Menu;
import com.example.peanutsubway.entity.MenuInfo;
import com.example.peanutsubway.util.PageInfo;
import com.example.peanutsubway.vo.MenuType;

import java.sql.Connection;
import java.util.List;

/**
 * @Author：liulei
 * @Version：1.0
 * @Date：2021/10/11-17:53
 * @Since:jdk1.8
 * @Description:
 */
public interface MenuInfoService {

    /**
     * 查询用户的权限菜单
     *
     * @param roleId
     * @return
     */
    List<MenuInfo> showUserMenuByRoleId(Integer roleId);
    String[] showUserMenuByRoleMinId(Integer roleId);
    Boolean addTree(Integer menuId,Integer rid);
    PageInfo findAllMenu(Menu menu, String nowPage, String pageNum);
    List<MenuType> findAllMenuType();
    Integer lastTreeId();
    void setConnection(Connection connection);
    Boolean updateMenu(Menu menu);
    Boolean addMenu(Menu menu);
    Boolean deleteMenu(Integer id);
}
